#include <iostream>
#include "Point.h"
using namespace std;
Point::Point() {
	x = y = 0;
	cout << "Default Constructor called." << endl;
}
Point::Point(int x, int y) : x(x), y(y) {
	cout << "Constructor called." << endl;
}
Point::~Point() {
	cout << "Destructor called." << endl;
}
void Point::move(int newX, int newY) {
	cout << "Moving the point to (" << newX << ", " <<
		newY << ")" << endl;
	x = newX;
	y = newY;
}
using namespace std;
int main() {
	cout << "Entering main..." << endl;
	Point a[2];
	for (int i = 0; i < 2; i++)
		a[i].move(i + 10, i + 20);
	cout << "Exiting main..." << endl;
	return 0;
}
